<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
</head>
<body>
    <div class="layui-form timo-compile">
    <form th:action="@{/friends/friend/save}">
        <input type="hidden" name="id" th:if="${friend}" th:value="${friend.id}">
        <div class="layui-form-item">
            <label class="layui-form-label">用户名</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="username" placeholder="请输入用户名" th:value="${friend?.username}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">性别</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="sex" placeholder="请输入性别" th:value="${friend?.sex}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">城市</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="city" placeholder="请输入城市" th:value="${friend?.city}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">描述</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="descrition" placeholder="请输入描述" th:value="${friend?.descrition}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">头像</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="userhead" placeholder="请输入头像" th:value="${friend?.userhead}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">自我介绍</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="selfdesc" placeholder="请输入自我介绍" th:value="${friend?.selfdesc}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">爱好</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="hobby" placeholder="请输入爱好" th:value="${friend?.hobby}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">学历要求</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="education" placeholder="请输入学历要求" th:value="${friend?.education}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">年龄</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="age" placeholder="请输入年龄" th:value="${friend?.age}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">出生日期</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="birthday" placeholder="请输入出生日期" th:value="${friend?.birthday}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">职业</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="occupation" placeholder="请输入职业" th:value="${friend?.occupation}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">用户地区</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="userarea" placeholder="请输入用户地区" th:value="${friend?.userarea}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">地区</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="area" placeholder="请输入地区" th:value="${friend?.area}">
            </div>
        </div>
        <div class="layui-form-item timo-finally">
            <button class="layui-btn ajax-submit"><i class="fa fa-check-circle"></i> 保存</button>
            <button class="layui-btn btn-secondary close-popup"><i class="fa fa-times-circle"></i> 关闭</button>
        </div>
    </form>
</div>
<script th:replace="/common/template :: script"></script>
</body>
</html>